<template>
  <div class="app-container org">
    <!-- 左侧区域 -->
    <el-card style="width: 100%">
      <el-tabs v-model="activityName" class="demo-tabs">
        <el-tab-pane label="未编制" name="first">
          <isReviewed v-if="activityName == 'first'" :isReport="0" ref="isReviewedRef" />
        </el-tab-pane>
        <el-tab-pane label="已编制" name="second">
          <isReviewed v-if="activityName == 'second'" ref="isReviewedRef" :isReport="1" />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script setup name="ReportProject">
import isReviewed from "./components/isReviewed";

const isReviewedRef = ref(null);

const activityName = ref("first");


onMounted(() => {
  nextTick(() => {
    isReviewedRef.value?.getTableHeight();
  });
});
onUpdated(() => {
  isReviewedRef.value?.getTableHeight();
});
</script>

<style></style>
